PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Tunnel Spheres / martin - tunnel race [meta mash].milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=6 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=2.103 |
| 27 | fWaveSmoothing=0.540 |
| 28 | fWaveParam=0.380 |
| 29 | fModWaveAlphaStart=0.810 |
| 30 | fModWaveAlphaEnd=1.400 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.000 |
| 46 | wave_b=0.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=1.000 |
| 53 | ob_a=0.300 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=128 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=0.89152 |
| 83 | wavecode_0_smoothing=0.00000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=0.000 |
| 86 | wavecode_0_b=0.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_init1=t1 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 89 | wave_0_init2=t2 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 90 | wave_0_init3=t3 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 91 | wave_0_init4=t4 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 92 | wave_0_init5=t5 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 93 | wave_0_init6=t6 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 94 | wave_0_init7=t7 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 95 | wave_0_init8=t8 = 1 + (int(rand(101))*.01 - int(rand(101))*.01)*.3; |
| 96 | wave_0_init9= |
| 97 | wave_0_per_point1=x = sample ; |
| 98 | wave_0_per_point2=y = .5+ value2*.01; |
| 99 | wave_0_per_point3= |
| 100 | wave_0_per_point4=a = 1*q24*((q27+1)%2); |
| 101 | wave_0_per_point5= |
| 102 | wave_0_per_point6=r = .5+.5*sin(time/5); |
| 103 | wave_0_per_point7=g = .5+.5*sin(time/6); |
| 104 | wave_0_per_point8=b = .5+.5*sin(time/13); |
| 105 | wavecode_1_enabled=1 |
| 106 | wavecode_1_samples=128 |
| 107 | wavecode_1_sep=0 |
| 108 | wavecode_1_bSpectrum=0 |
| 109 | wavecode_1_bUseDots=0 |
| 110 | wavecode_1_bDrawThick=1 |
| 111 | wavecode_1_bAdditive=0 |
| 112 | wavecode_1_scaling=0.89152 |
| 113 | wavecode_1_smoothing=0.00000 |
| 114 | wavecode_1_r=0.000 |
| 115 | wavecode_1_g=0.000 |
| 116 | wavecode_1_b=1.000 |
| 117 | wavecode_1_a=0.100 |
| 118 | wave_1_init1=t |
| 119 | wave_1_per_point1=y = sample ; |
| 120 | wave_1_per_point2=x = .5+ value2*0.01; |
| 121 | wave_1_per_point3= |
| 122 | wave_1_per_point4=a = 1*q24*(q27%2); |
| 123 | wave_1_per_point5= |
| 124 | wave_1_per_point6=r = .5+.5*sin(time/7); |
| 125 | wave_1_per_point7=g = .5+.5*sin(time/9); |
| 126 | wave_1_per_point8=b = .5+.5*sin(time/11); |
| 127 | wavecode_2_enabled=0 |
| 128 | wavecode_2_samples=512 |
| 129 | wavecode_2_sep=0 |
| 130 | wavecode_2_bSpectrum=0 |
| 131 | wavecode_2_bUseDots=0 |
| 132 | wavecode_2_bDrawThick=1 |
| 133 | wavecode_2_bAdditive=0 |
| 134 | wavecode_2_scaling=0.89152 |
| 135 | wavecode_2_smoothing=0.82000 |
| 136 | wavecode_2_r=1.000 |
| 137 | wavecode_2_g=1.000 |
| 138 | wavecode_2_b=1.000 |
| 139 | wavecode_2_a=0.100 |
| 140 | wavecode_3_enabled=0 |
| 141 | wavecode_3_samples=512 |
| 142 | wavecode_3_sep=0 |
| 143 | wavecode_3_bSpectrum=1 |
| 144 | wavecode_3_bUseDots=1 |
| 145 | wavecode_3_bDrawThick=0 |
| 146 | wavecode_3_bAdditive=0 |
| 147 | wavecode_3_scaling=1.00000 |
| 148 | wavecode_3_smoothing=0.50000 |
| 149 | wavecode_3_r=1.000 |
| 150 | wavecode_3_g=1.000 |
| 151 | wavecode_3_b=1.000 |
| 152 | wavecode_3_a=1.000 |
| 153 | wave_3_per_point1=ra = .8; |
| 154 | wave_3_per_point2=rb = .5; |
| 155 | wave_3_per_point3=pib = 6.28318530718; |
| 156 | wave_3_per_point4= |
| 157 | wave_3_per_point5= |
| 158 | wave_3_per_point6=tic = min(time-tin,.1); |
| 159 | wave_3_per_point7=tin = if(equal(sample,0),time,tin); |
| 160 | wave_3_per_point8= |
| 161 | wave_3_per_point9=mod = 1.5 + .5*sin(time*.15); |
| 162 | wave_3_per_point10=med = 1.5 + .5*sin(time*.134); |
| 163 | wave_3_per_point11=med = 5; |
| 164 | wave_3_per_point12=amod = 3; |
| 165 | wave_3_per_point13= |
| 166 | wave_3_per_point14=vr = int(rand(10001))*.0001; |
| 167 | wave_3_per_point15=rb = rb + int(rand(10001))*.0001*.1; |
| 168 | wave_3_per_point16= |
| 169 | wave_3_per_point17=a = vr; |
| 170 | wave_3_per_point18= |
| 171 | wave_3_per_point19=sa = vr*pib*.5; |
| 172 | wave_3_per_point20=sp = sa*mod + q1*1.3; |
| 173 | wave_3_per_point21=sam = sa*med - q1*.219; |
| 174 | wave_3_per_point22= |
| 175 | wave_3_per_point23=ox = ra*sin(sam*pib); |
| 176 | wave_3_per_point24=oy = ra*cos(sam*pib); |
| 177 | wave_3_per_point25=ox = ox + rb*-cos(sp)*sin(sam*pib); |
| 178 | wave_3_per_point26=oz = rb*-sin(sp); |
| 179 | wave_3_per_point27=oy = oy + rb*-cos(sp)*cos(sam*pib); |
| 180 | wave_3_per_point28= |
| 181 | wave_3_per_point29= |
| 182 | wave_3_per_point30=xang = time*.132; |
| 183 | wave_3_per_point31=xang = q2; |
| 184 | wave_3_per_point32=yang = time*.153; |
| 185 | wave_3_per_point33=yang = q3; |
| 186 | wave_3_per_point34=zang = time*.110; |
| 187 | wave_3_per_point35=zang = q4; |
| 188 | wave_3_per_point36=fov = 0.6 + 0.2*sin(time); |
| 189 | wave_3_per_point37=fov = .5; |
| 190 | wave_3_per_point38= |
| 191 | wave_3_per_point39=mx = ox*cos(zang) - oy*sin(zang); |
| 192 | wave_3_per_point40=my = ox*sin(zang) + oy*cos(zang); |
| 193 | wave_3_per_point41=ox = mx; |
| 194 | wave_3_per_point42=oy = my; |
| 195 | wave_3_per_point43=mx = ox*cos(yang) + oz*sin(yang); |
| 196 | wave_3_per_point44=mz = - ox*sin(yang) + oz*cos(yang); |
| 197 | wave_3_per_point45=ox = mx; |
| 198 | wave_3_per_point46=oz = mz; |
| 199 | wave_3_per_point47=my = oy*cos(xang) - oz*sin(xang); |
| 200 | wave_3_per_point48=mz = oy*sin(xang) + oz*cos(xang); |
| 201 | wave_3_per_point49=oy = my; |
| 202 | wave_3_per_point50=oz = mz; |
| 203 | wave_3_per_point51= |
| 204 | wave_3_per_point52=oz = oz - 2; |
| 205 | wave_3_per_point53=x = ox*fov/oz + 0.5; |
| 206 | wave_3_per_point54=x = (x-.5)*0.75 + 0.5; |
| 207 | wave_3_per_point55=y = oy*fov/oz + 0.5; |
| 208 | wave_3_per_point56= |
| 209 | shapecode_0_enabled=0 |
| 210 | shapecode_0_sides=18 |
| 211 | shapecode_0_additive=0 |
| 212 | shapecode_0_thickOutline=0 |
| 213 | shapecode_0_textured=1 |
| 214 | shapecode_0_num_inst=1 |
| 215 | shapecode_0_x=0.500 |
| 216 | shapecode_0_y=0.500 |
| 217 | shapecode_0_rad=0.15416 |
| 218 | shapecode_0_ang=0.00000 |
| 219 | shapecode_0_tex_ang=3.76991 |
| 220 | shapecode_0_tex_zoom=5.27784 |
| 221 | shapecode_0_r=1.000 |
| 222 | shapecode_0_g=1.000 |
| 223 | shapecode_0_b=1.000 |
| 224 | shapecode_0_a=0.700 |
| 225 | shapecode_0_r2=1.000 |
| 226 | shapecode_0_g2=1.000 |
| 227 | shapecode_0_b2=1.000 |
| 228 | shapecode_0_a2=0.000 |
| 229 | shapecode_0_border_r=1.000 |
| 230 | shapecode_0_border_g=1.000 |
| 231 | shapecode_0_border_b=0.000 |
| 232 | shapecode_0_border_a=0.000 |
| 233 | shape_0_per_frame1=tex_ang = 3+2*q1; |
| 234 | shapecode_1_enabled=0 |
| 235 | shapecode_1_sides=32 |
| 236 | shapecode_1_additive=0 |
| 237 | shapecode_1_thickOutline=0 |
| 238 | shapecode_1_textured=0 |
| 239 | shapecode_1_num_inst=1 |
| 240 | shapecode_1_x=0.500 |
| 241 | shapecode_1_y=0.500 |
| 242 | shapecode_1_rad=0.06892 |
| 243 | shapecode_1_ang=0.00000 |
| 244 | shapecode_1_tex_ang=0.00000 |
| 245 | shapecode_1_tex_zoom=1.83150 |
| 246 | shapecode_1_r=1.000 |
| 247 | shapecode_1_g=1.000 |
| 248 | shapecode_1_b=1.000 |
| 249 | shapecode_1_a=0.900 |
| 250 | shapecode_1_r2=0.000 |
| 251 | shapecode_1_g2=0.000 |
| 252 | shapecode_1_b2=0.000 |
| 253 | shapecode_1_a2=0.000 |
| 254 | shapecode_1_border_r=0.500 |
| 255 | shapecode_1_border_g=0.500 |
| 256 | shapecode_1_border_b=0.500 |
| 257 | shapecode_1_border_a=0.000 |
| 258 | shape_1_per_frame1=a = q24/2; a2 = 0; |
| 259 | shape_1_per_frame2= |
| 260 | shape_1_per_frame3=r = int(rand(10))/10; |
| 261 | shape_1_per_frame4=g = int(rand(10))/10; |
| 262 | shape_1_per_frame5=b = int(rand(10))/10; |
| 263 | shape_1_per_frame6= |
| 264 | shape_1_per_frame7=rad = .06*q22; |
| 265 | shapecode_2_enabled=0 |
| 266 | shapecode_2_sides=63 |
| 267 | shapecode_2_additive=0 |
| 268 | shapecode_2_thickOutline=0 |
| 269 | shapecode_2_textured=0 |
| 270 | shapecode_2_num_inst=1 |
| 271 | shapecode_2_x=0.123 |
| 272 | shapecode_2_y=0.000 |
| 273 | shapecode_2_rad=0.27319 |
| 274 | shapecode_2_ang=0.00000 |
| 275 | shapecode_2_tex_ang=0.00000 |
| 276 | shapecode_2_tex_zoom=0.49981 |
| 277 | shapecode_2_r=1.000 |
| 278 | shapecode_2_g=1.000 |
| 279 | shapecode_2_b=1.000 |
| 280 | shapecode_2_a=1.000 |
| 281 | shapecode_2_r2=1.000 |
| 282 | shapecode_2_g2=1.000 |
| 283 | shapecode_2_b2=1.000 |
| 284 | shapecode_2_a2=0.000 |
| 285 | shapecode_2_border_r=0.500 |
| 286 | shapecode_2_border_g=0.500 |
| 287 | shapecode_2_border_b=0.500 |
| 288 | shapecode_2_border_a=0.000 |
| 289 | shape_2_per_frame1=x = .5 + .1* sin (time*73); |
| 290 | shape_2_per_frame2=y = .5 + .1* sin (time*23); |
| 291 | shape_2_per_frame3= |
| 292 | shape_2_per_frame4=r = 0; g = 0; b = 0; |
| 293 | shape_2_per_frame5=r2 = 1; g2 = 1; b2 = 1; |
| 294 | shape_2_per_frame6= |
| 295 | shape_2_per_frame7=rad = mid_att/100; |
| 296 | shape_2_per_frame8=a = .7; |
| 297 | shape_2_per_frame9=a2 = a; |
| 298 | shapecode_3_enabled=0 |
| 299 | shapecode_3_sides=4 |
| 300 | shapecode_3_additive=0 |
| 301 | shapecode_3_thickOutline=0 |
| 302 | shapecode_3_textured=0 |
| 303 | shapecode_3_num_inst=1 |
| 304 | shapecode_3_x=0.500 |
| 305 | shapecode_3_y=0.510 |
| 306 | shapecode_3_rad=0.19869 |
| 307 | shapecode_3_ang=0.00000 |
| 308 | shapecode_3_tex_ang=1.00531 |
| 309 | shapecode_3_tex_zoom=0.49981 |
| 310 | shapecode_3_r=1.000 |
| 311 | shapecode_3_g=0.400 |
| 312 | shapecode_3_b=0.000 |
| 313 | shapecode_3_a=0.700 |
| 314 | shapecode_3_r2=1.000 |
| 315 | shapecode_3_g2=1.000 |
| 316 | shapecode_3_b2=1.000 |
| 317 | shapecode_3_a2=0.000 |
| 318 | shapecode_3_border_r=0.500 |
| 319 | shapecode_3_border_g=0.500 |
| 320 | shapecode_3_border_b=0.500 |
| 321 | shapecode_3_border_a=0.000 |
| 322 | shape_3_per_frame1=x = 0.05 + int(rand(900))/1000; |
| 323 | shape_3_per_frame2=y = 0.05 + int(rand(900))/1000; |
| 324 | shape_3_per_frame3= |
| 325 | per_frame_init_1=prox = 1; |
| 326 | per_frame_1=dec_med = pow (0.8, 30/fps); |
| 327 | per_frame_2=dec_slow = pow (0.95, 30/fps); |
| 328 | per_frame_3=//dec_xlow = pow (0.999, 30/fps); |
| 329 | per_frame_4=beat = max (max (bass, mid), treb); |
| 330 | per_frame_5=avg = avg*dec_slow + beat*(1-dec_slow); |
| 331 | per_frame_6=is_beat = above(beat, .2+avg+peak) * above (time, t0+.2); |
| 332 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 333 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_med; |
| 334 | per_frame_9=index = (index + is_beat) %32; |
| 335 | per_frame_10=index2 = (index2 + is_beat*bnot(index))%4; |
| 336 | per_frame_11= |
| 337 | per_frame_12=q22 = peak; |
| 338 | per_frame_13=q24 = is_beat; |
| 339 | per_frame_14=q26 = bass_att + mid_att + treb_att; |
| 340 | per_frame_15=vol = vol*dec_med + (1-dec_med)*q26; |
| 341 | per_frame_16=q27 = index + 1; |
| 342 | per_frame_17=q28 = index2 +1; |
| 343 | per_frame_18= |
| 344 | per_frame_19=p2 = .3*sin(time) + .3*cos(time/3); |
| 345 | per_frame_20=//*****tunnel tilting |
| 346 | per_frame_21=q1 = cos(p2 * 3.1416/4); |
| 347 | per_frame_22=q2 = sin(p2 * 3.1416/4); |
| 348 | per_frame_23=q3 = -q2; |
| 349 | per_frame_24=q4 = q1; |
| 350 | per_frame_25= |
| 351 | per_frame_26=//****tunnel viewpoint x,y |
| 352 | per_frame_27=vtrig = is_beat * bnot(index%2); |
| 353 | per_frame_28=vx = vx * bnot(vtrig) + vtrig * (int(rand(100))/100-.5); |
| 354 | per_frame_29=vy = vy * bnot(vtrig) + vtrig * (int(rand(100))/100-.5); |
| 355 | per_frame_30=vx = vx* below(index%15,5); //### |
| 356 | per_frame_31=vy = vy* below(index%15,5); |
| 357 | per_frame_32=q5 = vx*10; |
| 358 | per_frame_33=q6 = vy*12; |
| 359 | per_frame_34= |
| 360 | per_frame_35=//***tunnel width |
| 361 | per_frame_36=q21 = (1+sin(time/12))/8+.01; |
| 362 | per_frame_37= |
| 363 | per_frame_38=//**floor proximity |
| 364 | per_frame_39=prox = prox - above(vy,.3)*prox*2; |
| 365 | per_frame_40=q32 = .5 + .2*prox; |
| 366 | per_frame_41=monitor = prox; |
| 367 | per_frame_42= |
| 368 | per_frame_43=//****tunnel rotation |
| 369 | per_frame_44=rota = rota +.01*below(index%16,8)/fps*30; |
| 370 | per_frame_45=rota1 = rota1*dec_med + (1-dec_med)*rota; |
| 371 | per_frame_46=q7 = rota1; |
| 372 | per_frame_47= |
| 373 | per_frame_48=//****tunnel speed |
| 374 | per_frame_49=movez = movez + 1.2/(1+abs(vx)+abs(vy))/fps; |
| 375 | per_frame_50=q8 = movez * (1+q21/4); |
| 376 | per_frame_51=//dyn. Aenderung von q21 bewirkt auch Richt.wechsel |
| 377 | per_frame_52= |
| 378 | per_frame_53=//*********************** |
| 379 | per_frame_54=trig1= q24*bnot(index%12); |
| 380 | per_frame_55=trig2= q24*bnot((index+4)%12); |
| 381 | per_frame_56=trig3= q24*bnot((index+8)%12); |
| 382 | per_frame_57=trel = trel + vol/fps; |
| 383 | per_frame_58=z0 = 1; |
| 384 | per_frame_59=speed = vol/2; |
| 385 | per_frame_60=hx = sin(trel); |
| 386 | per_frame_61=hy = cos(trel); |
| 387 | per_frame_62= |
| 388 | per_frame_63=p1z = bnot(trig1)* (p1z + (5+p1z)*speed/fps)+trig1*z0; |
| 389 | per_frame_64=p1z = max(p1z,.1); |
| 390 | per_frame_65=q9 = hx/(p1z); |
| 391 | per_frame_66=q10 = hy/(p1z); |
| 392 | per_frame_67=q11 = p1z; |
| 393 | per_frame_68=q12 = .1+.02*q26*bnot((index+2)%3)*p1z*exp(-p1z/100); |
| 394 | per_frame_69= |
| 395 | per_frame_70=p2z = bnot(trig2)* (p2z + (5+p2z)*speed/fps)+trig2*z0; |
| 396 | per_frame_71=p2z = max(p2z,.1); |
| 397 | per_frame_72=q13 = 2*hx/(p2z); |
| 398 | per_frame_73=q14 = -.5*hy/(p2z); |
| 399 | per_frame_74=q15 = p2z; |
| 400 | per_frame_75=q16 = .1+.02*q26*bnot((index+2)%3)*p2z*exp(-p2z/100); |
| 401 | per_frame_76= |
| 402 | per_frame_77= |
| 403 | per_frame_78=p3z = bnot(trig3)* (p3z + (5+p3z)*speed/fps)+trig3*z0; |
| 404 | per_frame_79=p3z = max(p3z,.1); |
| 405 | per_frame_80=q17 = -1.4*hx/(p3z); |
| 406 | per_frame_81=q18 = 2*hy/(p3z); |
| 407 | per_frame_82=q19 = p3z; |
| 408 | per_frame_83=q20 = .1+.02*q26*bnot((index+2)%3)*p3z*exp(-p3z/100); |
| 409 | warp_1=`float3 ret1, tree; |
| 410 | warp_2=`float mask1; |
| 411 | warp_3=` |
| 412 | warp_4=`shader_body { |
| 413 | warp_5=`float corr = texsize.xy*texsize_noise_hq.zw * 0.05; |
| 414 | warp_6=`float2 uv1 = float2(uv.x-0.5,uv.y-0.5)*aspect.xy; |
| 415 | warp_7=` |
| 416 | warp_8=`float2 uv3 = uv1; |
| 417 | warp_9=`float dist = 60; |
| 418 | warp_10=` |
| 419 | warp_11=`uv3 = dist * uv1; |
| 420 | warp_12=` |
| 421 | warp_13=`float zu = lum(tex2D (sampler_noise_lq,uv)); |
| 422 | warp_14=`float shape = 40* (q29+2); |
| 423 | warp_15=`float ky = saturate(-uv3.y/50+zu/8*cos(16*zu)+.2); |
| 424 | warp_16=`//Faktor an uv.y drehen |
| 425 | warp_17=` |
| 426 | warp_18=`float k1 = uv3.x*(2-.3*uv.y);; |
| 427 | warp_19=` |
| 428 | warp_20=`k1 = k1 - sign (k1)*24; //Verdoppelung |
| 429 | warp_21=`k1 = k1 - sign (k1)*9; //Verdoppelung |
| 430 | warp_22=` |
| 431 | warp_23=`int n = 1 ; |
| 432 | warp_24=`float delta = .1; |
| 433 | warp_25=`while (n <= 5) |
| 434 | warp_26=`{ |
| 435 | warp_27=` k1 += 2*(k1-6*n*sign(k1))*ky; |
| 436 | warp_28=` //Mult. mit n steuert "Breitenwuchs" |
| 437 | warp_29=` ky = saturate (ky - delta); |
| 438 | warp_30=` delta *= 1; |
| 439 | warp_31=` //delta ist vertikaler Verzweig. abstand |
| 440 | warp_32=` n++; |
| 441 | warp_33=`} |
| 442 | warp_34=` |
| 443 | warp_35=`k1 = clamp(k1,-1.6,1.6); |
| 444 | warp_36=` |
| 445 | warp_37=`float2 rs1 = float2 (tan(k1),uv3.y); |
| 446 | warp_38=` |
| 447 | warp_39=`tree = lum(tex2D(sampler_noise_hq,rs1*corr))+.2; |
| 448 | warp_40=`//tree = abs(cos(k1)); |
| 449 | warp_41=`tree *= float3 (2.5,.4,.2) * cos(k1); |
| 450 | warp_42=` |
| 451 | warp_43=`mask1 = 1; |
| 452 | warp_44=` |
| 453 | warp_45=`ret1 = .05*mask1*tree*saturate(1-pow(2.4*uv1.y,6)); |
| 454 | warp_46=` |
| 455 | warp_47=`ret = GetPixel(frac(uv))*.5 + ret1; |
| 456 | warp_48=` |
| 457 | warp_49=`} |
| 458 | comp_1=`sampler sampler_pw_noise_lq; |
| 459 | comp_2=` |
| 460 | comp_3=`float k1, k2, mask1, mask2, mask3, rad1, rad2, rad3; |
| 461 | comp_4=`float2 rs, rss, rss0, rs0, uv2, uv3,uv4, rsk, uvo; |
| 462 | comp_5=`float2 dz1, dz2, dz3, Kugel1, Kugel2, Kugel3,tmp; |
| 463 | comp_6=`float3 noise, ret1, ret2; |
| 464 | comp_7=` |
| 465 | comp_8=`shader_body { |
| 466 | comp_9=`uvo = uv; |
| 467 | comp_10=`uv = mul(uv*aspect.xy,float2x2(_qa)); |
| 468 | comp_11=` |
| 469 | comp_12=`uv = uv + -.0- .1*float2(q5,q6); |
| 470 | comp_13=`float2 uv1 = (uv-.5 );//*aspect.xy; |
| 471 | comp_14=` |
| 472 | comp_15=`//Kugel1 |
| 473 | comp_16=`rsk = (uv1 + float2 (q9,q10)) ; |
| 474 | comp_17=`dz1 = normalize(rsk); |
| 475 | comp_18=`rad1 = q11*length (rsk) ; |
| 476 | comp_19=`uv4 = tan(rad1)*dz1; |
| 477 | comp_20=`mask1 = saturate(8-8*rad1); |
| 478 | comp_21=`Kugel1 = uv4*mask1; |
| 479 | comp_22=` |
| 480 | comp_23=`//Kugel2 |
| 481 | comp_24=`rsk = (uv1 + float2 (q13,q14)) ; |
| 482 | comp_25=`dz2 = normalize(rsk); |
| 483 | comp_26=`rad2 = q15*length (rsk) ; |
| 484 | comp_27=`uv4 = tan(rad2)*dz2; |
| 485 | comp_28=`mask2 = saturate(8-8*rad2); |
| 486 | comp_29=`Kugel2 = uv4*mask2; |
| 487 | comp_30=` |
| 488 | comp_31=`//Kugel3 |
| 489 | comp_32=`rsk = (uv1 + float2 (q17,q18)) ; |
| 490 | comp_33=`dz3 = normalize(rsk); |
| 491 | comp_34=`rad3 = q19*length (rsk) ; |
| 492 | comp_35=`uv4 = tan(rad3)*dz3; |
| 493 | comp_36=`mask3 = saturate(8-8*rad3); |
| 494 | comp_37=`Kugel3 = uv4*mask3; |
| 495 | comp_38=` |
| 496 | comp_39=`float2 dz = (Kugel2 + Kugel1 + Kugel3)*.2; |
| 497 | comp_40=`//******************** STARS |
| 498 | comp_41=`uv1 += dz; |
| 499 | comp_42=`rss0.x = atan2(uv1.x, uv1.y)/3.1416; |
| 500 | comp_43=`rss0.y = .1*q21/(length (uv1)); |
| 501 | comp_44=` |
| 502 | comp_45=`rss = float2 (rss0.x,rss0.y+time); |
| 503 | comp_46=`rss = mul(rss,float2x2(.7,.7,-.7,.7)); |
| 504 | comp_47=`float noise = (tex2D(sampler_pw_noise_lq,rss/32)-.5 >= 0); |
| 505 | comp_48=`tmp = abs(frac(rss*8)-.5); |
| 506 | comp_49=`float3 dots = saturate(.04/length(tmp)) *noise; |
| 507 | comp_50=` |
| 508 | comp_51=`rss = float2 (rss0.x,rss0.y+time/4); |
| 509 | comp_52=`rss = mul(rss,float2x2(.7,.7,-.7,.7)); |
| 510 | comp_53=`noise = (tex2D(sampler_pw_noise_lq,rss/32)-.5 >= 0); |
| 511 | comp_54=`tmp = abs(frac(rss*8)-.5); |
| 512 | comp_55=`dots += saturate(.02/length(tmp)) * noise; |
| 513 | comp_56=` |
| 514 | comp_57=`dots *= saturate(.2/abs(rss0.y)); |
| 515 | comp_58=`dots *= dots*.6; |
| 516 | comp_59=`//************************* |
| 517 | comp_60=` |
| 518 | comp_61=`float z = q32/(uv1.y-.02);//floor proxy |
| 519 | comp_62=`float mask = saturate(4/z); |
| 520 | comp_63=`rs0.x = (uv1.x)*z; |
| 521 | comp_64=`rs0.y = z/4; |
| 522 | comp_65=`rs.x = rs0.x ; |
| 523 | comp_66=`rs.y = rs0.y + q8*3; |
| 524 | comp_67=`float3 mirror = lum(tex2D(sampler_pw_noise_lq,.02*rs))-.5; |
| 525 | comp_68=`z = .2/(length(uv1)-q21); |
| 526 | comp_69=`uv2.y = z + q8; |
| 527 | comp_70=`uv2.x = rss0.x +q7; |
| 528 | comp_71=`uv3 =frac(uv2 +.0*mask*mirror); |
| 529 | comp_72=` |
| 530 | comp_73=`ret1 = tex2D (sampler_main,uv3)/z; |
| 531 | comp_74=`ret = max(ret1*(1-0.5*mask),mirror*mask) +dots; |
| 532 | comp_75=` |
| 533 | comp_76=`float mod = q22*2; |
| 534 | comp_77=`float3 blk = abs(rsqrt(rad1)*dz1.x*roam_sin |
| 535 | comp_78=`+rsqrt(rad2)*dz2.y*roam_sin.rbg |
| 536 | comp_79=`+rsqrt(rad3)*dz3.x*roam_sin.bgr)*(.2+mirror*mask)*mod; |
| 537 | comp_80=`ret += blk; |
| 538 | comp_81=` |
| 539 | comp_82=`ret2 = saturate(.02*q22*q21/length (uv1)* |
| 540 | comp_83=` (lum(tex2D (sampler_main,uv1+.5)))); |
| 541 | comp_84=`ret2 /= (length(uv1)+.02); |
| 542 | comp_85=`float k1 = lum(ret2); |
| 543 | comp_86=`ret += k1*float3(1,k1,k1/2) ; |
| 544 | comp_87=`} |